package server;

import server.base.HttpRequest;
import server.base.HttpServlet;
import server.base.HttpResponse;

import java.io.IOException;

/**
 * @ClassName LogouServlet
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/3/6
 * @Version 1.0.0
 */
public class LagouServlet extends HttpServlet {


    @Override
    protected void doPost(HttpRequest request, HttpResponse response) throws IOException {
        String context = "<h1>LagouServlet post</h1>";
        response.output(HttpResponseUtil.getHttpHeader200(context.getBytes().length)+context);
    }

    @Override
    protected void doGet(HttpRequest request, HttpResponse response) throws IOException {
        String context = "<h1>LagouServlet get</h1>";
        response.output(HttpResponseUtil.getHttpHeader200(context.getBytes().length)+context);
    }
}
